Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

Avoid array usage to store disappearing transitions on beachsection removal#32

Open
fjwong wants to merge 1 commit intogorhill:masterfrom
fjwong:simplify-beachsection-removal
Open

Avoid array usage to store disappearing transitions on beachsection removal#32
fjwong wants to merge 1 commit intogorhill:masterfrom
fjwong:simplify-beachsection-removal

Conversation

@fjwong
Copy link
Copy Markdown

@fjwong fjwong commented Jan 23, 2017

When a beachsection is removed, the original implementation creates an array and stores all "disappearing transitions" in it, so that the starting points of their edges can be updated.

This PR changes the removeBeachsection method so that endpoints are set when cycling through the disappearing transitions the first time, avoiding the creation of this new array, and reducing the amount of time spent on garbage collection because of this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant